package com.shop.myweb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.myweb.entity.Goods;
import com.shop.myweb.mapper.GoodsMapper;
import com.shop.myweb.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 11098
 * @description 针对表【goods(菜品管理)】的数据库操作Service实现
 * @createDate 2023-04-23 19:43:24
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods>
        implements GoodsService {


    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public List<Goods> selectRandomList() {
        return goodsMapper.selectRandomPage();
    }

    @Override
    public List<Goods> selectIndexRandomPage() {
        return goodsMapper.selectIndexRandomPage();
    }


}




